织梦cms

推荐列表 站点导航

当前位置:首页 > 建站教程 > 织梦cms >

DEDE保存TAGS标签之InsertTags函数

来源:网络整理  作者:  发布时间:2020-12-18 11:26
/** * 插入Tags * * @access public * @param string $tag tag标签 * @param int $aid 文档AID * @return void */ if ( ! function_exists(InsertTags)) {...

            $tags .= ($tags=='' ? $row['tag'] : ','.$row['tag']);

        }

            {

    }

 

        $tags = explode(',',$tag);

    function GetTags($aid)

}

            $tag = trim($tag);

        $tags = '';

 *  插入Tags

 

        $dsql->Execute('tag',$query);

{

 

        while($row = $dsql->GetArray('tag'))

 *  获得某文档的所有tag

 */

        }

 

}

    {

if ( ! function_exists('GetTags'))

 * @return    string

 */

/**

        {

 * @return    void

 * @param     string  $tag  tag标签

            InsertOneTag($tag,$aid);

 *

            if(isset($tag[20]) || $tag!=stripslashes($tag))

通过如下函数获取保存在表里的TAGS标签:

 * @param     int     $aid  文档id

        global $dsql;

if ( ! function_exists('InsertTags'))

函数在/include/helpers/archive.helper.php中

    function InsertTags($tag, $aid)

    }

{

 

            }

        return $tags;

        $query = "SELECT tag FROM `dede_taglist` WHERE aid='$aid' ";

                continue;

 *

        foreach($tags as $tag)

 * @access    public

 * @param     int  $aid  文档AID

    {

        {

相关热词: tags标签 标签 dede tags

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!

本文地址: https://v30.fanwenzhu.com/jz/dedecms/5167.shtml

Copyright © www.juheyunku.com      关于 | 合作 | 声明 | 联系 | 更新 | 地图 | Tags

DEDE保存TAGS标签之InsertTags函数

2020-12-18 编辑:

            $tags .= ($tags=='' ? $row['tag'] : ','.$row['tag']);

        }

            {

    }

 

        $tags = explode(',',$tag);

    function GetTags($aid)

}

            $tag = trim($tag);

        $tags = '';

 *  插入Tags

 

        $dsql->Execute('tag',$query);

{

 

        while($row = $dsql->GetArray('tag'))

 *  获得某文档的所有tag

 */

        }

 

}

    {

if ( ! function_exists('GetTags'))

 * @return    string

 */

/**

        {

 * @return    void

 * @param     string  $tag  tag标签

            InsertOneTag($tag,$aid);

 *

            if(isset($tag[20]) || $tag!=stripslashes($tag))

通过如下函数获取保存在表里的TAGS标签:

 * @param     int     $aid  文档id

        global $dsql;

if ( ! function_exists('InsertTags'))

函数在/include/helpers/archive.helper.php中

    function InsertTags($tag, $aid)

    }

{

 

            }

        return $tags;

        $query = "SELECT tag FROM `dede_taglist` WHERE aid='$aid' ";

                continue;

 *

        foreach($tags as $tag)

 * @access    public

 * @param     int  $aid  文档AID

    {

        {

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供学习参考!
本文地址为 https://v30.fanwenzhu.com/jz/dedecms/5167.shtml

相关文章

风云图片

推荐阅读

返回织梦cms频道首页